﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020014C5 RID: 5317
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UpdatePsnSettingsInfoScRsp : IMessage<UpdatePsnSettingsInfoScRsp>, IMessage, IEquatable<UpdatePsnSettingsInfoScRsp>, IDeepCloneable<UpdatePsnSettingsInfoScRsp>, IBufferMessage
	{
		// Token: 0x170042ED RID: 17133
		// (get) Token: 0x0600EDC0 RID: 60864 RVA: 0x0027B1D0 File Offset: 0x002793D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UpdatePsnSettingsInfoScRsp> Parser
		{
			get
			{
				return UpdatePsnSettingsInfoScRsp._parser;
			}
		}

		// Token: 0x170042EE RID: 17134
		// (get) Token: 0x0600EDC1 RID: 60865 RVA: 0x0027B1D7 File Offset: 0x002793D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UpdatePsnSettingsInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170042EF RID: 17135
		// (get) Token: 0x0600EDC2 RID: 60866 RVA: 0x0027B1E9 File Offset: 0x002793E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UpdatePsnSettingsInfoScRsp.Descriptor;
			}
		}

		// Token: 0x0600EDC3 RID: 60867 RVA: 0x0027B1F0 File Offset: 0x002793F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdatePsnSettingsInfoScRsp()
		{
		}

		// Token: 0x0600EDC4 RID: 60868 RVA: 0x0027B1F8 File Offset: 0x002793F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdatePsnSettingsInfoScRsp(UpdatePsnSettingsInfoScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EDC5 RID: 60869 RVA: 0x0027B21D File Offset: 0x0027941D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdatePsnSettingsInfoScRsp Clone()
		{
			return new UpdatePsnSettingsInfoScRsp(this);
		}

		// Token: 0x170042F0 RID: 17136
		// (get) Token: 0x0600EDC6 RID: 60870 RVA: 0x0027B225 File Offset: 0x00279425
		// (set) Token: 0x0600EDC7 RID: 60871 RVA: 0x0027B22D File Offset: 0x0027942D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600EDC8 RID: 60872 RVA: 0x0027B236 File Offset: 0x00279436
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UpdatePsnSettingsInfoScRsp);
		}

		// Token: 0x0600EDC9 RID: 60873 RVA: 0x0027B244 File Offset: 0x00279444
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UpdatePsnSettingsInfoScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EDCA RID: 60874 RVA: 0x0027B274 File Offset: 0x00279474
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EDCB RID: 60875 RVA: 0x0027B2B3 File Offset: 0x002794B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EDCC RID: 60876 RVA: 0x0027B2BB File Offset: 0x002794BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EDCD RID: 60877 RVA: 0x0027B2C4 File Offset: 0x002794C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EDCE RID: 60878 RVA: 0x0027B2F8 File Offset: 0x002794F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EDCF RID: 60879 RVA: 0x0027B336 File Offset: 0x00279536
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UpdatePsnSettingsInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EDD0 RID: 60880 RVA: 0x0027B367 File Offset: 0x00279567
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EDD1 RID: 60881 RVA: 0x0027B370 File Offset: 0x00279570
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 112U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005E00 RID: 24064
		private static readonly MessageParser<UpdatePsnSettingsInfoScRsp> _parser = new MessageParser<UpdatePsnSettingsInfoScRsp>(() => new UpdatePsnSettingsInfoScRsp());

		// Token: 0x04005E01 RID: 24065
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005E02 RID: 24066
		public const int RetcodeFieldNumber = 14;

		// Token: 0x04005E03 RID: 24067
		private uint retcode_;
	}
}
